package ufro.pds;

import ufro.pdssoaws.AnotacionesSOAWS;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class AnotacionesActivity extends Activity {
	/** Called when the activity is first created. */


	private Button btningresar;
	private Button btnbuscar;
	private Button btnsalir;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		btningresar = (Button) findViewById(R.id.button1);
		btnbuscar = (Button) findViewById(R.id.button2);
		btnsalir = (Button) findViewById(R.id.button3);


		btningresar.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent();
				i.setClass(getApplicationContext(), IngresarAnotacion.class);
				startActivity(i);

			}
		});
		btnbuscar.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				// TODO Auto-generated method stub
				AnotacionesSOAWS anot = new AnotacionesSOAWS();
				String recibe = "";
				recibe = anot.verAnotaciones();
				Intent i = new Intent();
				i.setClass(getApplicationContext(), BuscarAnotaciones.class);
				i.putExtra("datos",recibe );
				startActivity(i);

			}
		});
		btnsalir.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				finish();

			}
		});
	}
}